<{include file="public/header.html"}>
<script>
    function alls() {
        var cks = document.getElementsByName('check_article[]');
        for (i = 0; i < cks.length; i++) {
            cks[i].checked = true;
        }
    }

    function fans() {
        var cks = document.getElementsByName('check_article[]');
        for (i = 0; i < cks.length; i++) {
            if (cks[i].checked == true) {
                cks[i].checked = false;
            } else {
                cks[i].checked = true;
            }
        }
    }
</script>
<p id="page-intro">Free Blog</p>
<br/><br/>
<div class="clear"></div> <!-- End .clear -->

<div class="content-box"><!-- Start Content Box -->
    <div class="content-box-header">
        <h3>管理评论</h3>
        <ul class="content-box-tabs">
            <li><a href="#tab1" class="default-tab">管理评论</a></li>
            <!-- href must be unique and match the id of target div -->
        </ul>
        <div class="clear"></div>
    </div> <!-- End .content-box-header -->

    <div class="content-box-content ">
        <div class="tab-content default-tab" id="tab1">
            <!-- This is the target div. id must match the href of this div's tab -->
            <table>
                <tfoot>
                <form action='<{$app}>/articleManage/delArticle' method='post'>
                    <tr>
                        <td colspan='6'>
                            <div class="bulk-actions align-left">
                                <a href="javascript:void(0)" class="button" onclick="alls()"
                                   style="height:15px;width:40px;text-align:center">全选</a>&nbsp
                                <a href="javascript:void(0)" class="button" onclick="fans()"
                                   style="height:15px;width:40px;text-align:center">反选</a>&nbsp
                                <input type='hidden' name='flage' value='delete_reviewManage'/>
                                <input type='hidden' name='page' value='<{$page}>'/>
                                <input type="submit" value="删除选中" name="reviewDel" class="button"
                                       style="height:25px;width:68px"
                                       onclick='return confirm("您确实要删除选择的文章？删除后该文章下的所有评论，回复都将删除！")'>
                            </div>
                            <div class="pagination"><!--用户分页-->
                                <{$fpage}>
                            </div> <!-- End .pagination -->
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                <{section name=review loop=$reviewData}>
                <tr>
                    <td><input type='checkbox' name='check_article[]' value="<{$reviewData[review].aid}>"/></td>
                    <td>
                        <a href='<{$url}>/viewArticle/aid/<{$reviewData[review].aid}>'>
                            <{$reviewData[review].article_title}>
                        </a>
                        <br/>
                        <br/>
                        <{$reviewData[review].article_time|date_format:"%y年-%m月-%d日 %H:%M:%S"}>
                    </td>
                    <{if $reviewData[review].flag}>
                    <td>
                        <{$reviewData[review].review_name}>
                        <br/>
                        <br/>
                        <{$reviewData[review].review_email}>
                    </td>
                    <td>
                        <{$reviewData[review].review_time|date_format:"%y年-%m月-%d日 %H:%M:%S"}>
                        <br/>
                        <br/>
                        共(<{$reviewData[review].review_count}>)篇评论
                    </td>
                </tr>
                <{else}>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>&nbsp;该文章还没有评论!</td>
                </tr>
                <{/if}>
                <{sectionelse}>
                <tr>
                    <td colspan='6'>还没有文章需要评论!</td>
                </tr>
                <{/section}>
                </form>
                </tbody>
            </table>
        </div>
        <div class="clear"></div>
    </div> <!-- End #tab1 -->
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box -->
<div class="clear"></div>

<!--页面底部-->
<{include file="public/foot.html"}>